package com.hisense.hisensedatacheck.dao;

import com.hisense.hisensedatacheck.entity.FrXzcfxx;
import com.hisense.hisensedatacheck.entity.ZrrXzcfxx;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface ZrrXzcfxxMapper {

    //    查询所有数据
    List<ZrrXzcfxx> selectAll();

    //修改所有数据
    Integer updateErrorByIds(@Param("zrrXzcfxx") List<ZrrXzcfxx> zrrXzcfxx);

    //    状态修改
    @Update("UPDATE zrr_xzcfxx_jm_error SET cd_operation = 'U'  WHERE cd_operation NOT IN ('I','U','D')")
    Integer updateOperation();
}